//
// Created by iguilty on 2022-01-13.
//

#include "Adapter.h"
#include <iostream>
using namespace std;

Target::Target(){}
Target::~Target(){}

void Target::Request() {
    std::cout<<"Target::Request"<<std::endl;
}

Adaptee::Adaptee() {}
Adaptee::~Adaptee() {}

void Adaptee::SpecificRequest() {
    cout<<"Adaptee::SpecificRequest"<<endl;
}

Adapter::Adapter(Adaptee *adaptee) {
    this->_adaptee = adaptee;
}

Adapter::~Adapter() {}

void Adapter::Request() {
    _adaptee->SpecificRequest();
}